﻿using Comm100.Framework.Domain.Repository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Bot.Domain.Entities;
using Bot.Domain.Interfaces;
using Bot.Domain.Bo;
using Castle.Windsor;
using Bot.Domain.Enum;
using Bot.Domain.Specifications;

namespace Bot.Domain.Categories.Service
{
    public class LanguageDomainService : ILanguageDomainService
    {
        private IWindsorContainer _container;
        private readonly IRepository<Guid, Language> _repository;

        public LanguageDomainService(IRepository<Guid, Language> repository, IWindsorContainer container)
        {
            this._repository = repository;
            this._container = container;
        }

        public IEnumerable<Language> List(EnumLanguageType type)
        {
            var spec = new LanguageFilterSpecification(type);
            return _repository.List(spec);
        }

    }
}
